/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconCheckCircle: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 96c229.76 0 416 186.24 416 416s-186.24 416-416 416S96 741.76 96 512 282.24 96 512 96z m0 64C317.6 160 160 317.6 160 512s157.6 352 352 352 352-157.6 352-352S706.4 160 512 160z m214.624 201.376a32 32 0 0 1 2.656 42.24l-2.656 3.008-256 255.904a32 32 0 0 1-42.24 2.656l-3.008-2.656-128-127.904a32 32 0 0 1 42.24-47.936l3.008 2.688 105.344 105.28 233.408-233.28a32 32 0 0 1 45.248 0z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconCheckCircle.defaultProps = {
  size: 18,
};

export default IconCheckCircle;
